#include <iostream>
#include <string>
#include <cstdlib>
#include "MockProbabilityModel.h"
#include "ArithmeticDecoder.h"
#include "ArithmeticEncoder.h"

using namespace std;

int main() {
	//MockProbabilityModel model("arytmetyka");
	//ArithmeticEncoder encoder(&model);
	
	//BitBuffer bufferWithCode = encoder.encodeString("arytmetyka");
	
	MockProbabilityModel model("arytmetyka");
	ArithmeticEncoder encoder(&model);
	ArithmeticDecoder decoder(&model);
	BitBuffer bufferWithCode = encoder.encodeString("arytmetyka");
	
	//BitBuffer bufferToEncode(bufferWithCode);
	char* result = new char[bufferWithCode.getSize()];
	result = decoder.decodeBitStream(bufferWithCode);

	string c;
	cin >> c;
}
